home *** CD-ROM | disk | FTP | other *** search
-
- ~4Dgifts/toolbox/src/exampleCode/inventor/DirectManipRevoSurf README
-
- draggers implementation for direct manipulation of surface of revolution
-
-
- Recently someone posted a question (on comp.sys.sgi.graphics)
- about using Inventor manipulators to edit shapes.
-
- Here's a demo that uses draggers for direct manipulation
- of a surface of revolution.
-
- -------------------------------------------------------------------------
- NOTE: You must be running the 5.2 operating system and have Inventor 2.0
- installed to run this demo!
- -------------------------------------------------------------------------
-
- Instructions:
- [1] setenv LD_LIBRARY_PATH .
- [2] ivview -q test.iv
-
- When ivview comes up, you should see a surface of revolution.
- Dragging the cubes changes the profile curve.
- Dragging the spheres changes the axis of revolution.
- Try clicking the right mouse and selecting 'hidden line' from the
- drawStyle menu for a cool looking version.
-
- Explanation:
- Step [1] sets the environment variable LD_LIBRARY_PATH to the current
- directory. Inventor programs (like ivview) will look here for
- DSO's of classes that are not 'standard' Inventor. The files
- given include one such DSO, RevoSurfEngine.so (see below).
- Step [2] Runs ivview, a program that reads in an Inventor file and
- displays it on screen.
-
- About the files in the directory:
- RevoSurfEngine.h
- RevoSurfEngine.c++ - header and source files for a class of engine that
- takes an axis and a set of profile points as input.
- Outputs points defining a surface of revolution.
- RevoSurfEngine.so - Dynamic Shared Object for the RevoSurfEngine.
- When ivview encounters a RevoSurfEngine in test.iv,
- it will look in the current directory for this file.
- Makefile - Makes RevoSurfEngine.so from the header and source.
- (You can only do this if you have the inventor
- developer option).
- test.iv - An Inventor file containing a RevoSurfEngine,
- draggers for editing the axis and spine, and
- an SoIndexedFaceSet that displays the surface.
-
- Inventor enables Rapid Development!!
- This demo took only 3 1/2 hours to write, working from scratch,
- start to finish.
-
- Paul Isaacs
- pauli@sgi.com
-